package cn.burnit.pojo;

/**
 * 读者类
 */
public class Reader {
    private int id;//读者id
    private String readername;//读者姓名
    private String readertype;//读者类型
    private String sex;//性别
    private int max_num;//可借最大数
    private int days_num;//可借天数

    public Reader() {
    }

    public Reader(int id, String readername, String readertype, String sex, int max_num, int days_num) {
        this.id = id;
        this.readername = readername;
        this.readertype = readertype;
        this.sex = sex;
        this.max_num = max_num;
        this.days_num = days_num;
    }


    public Reader(String readername, String readertype, String sex, int max_num, int days_num) {
        this.readername=readername;
        this.readertype=readertype;
        this.sex=sex;
        this.max_num=max_num;
        this.days_num=days_num;
    }

    public Reader(String readername) {
        this.readername = readername;
    }

    public Reader(String readername, String readertype, String sex) {
        this.readername=readername;
        this.readertype=readertype;
        this.sex=sex;
    }

    public Reader(int readerId, int maxnum) {
        this.id=readerId;
        this.max_num=maxnum;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getReadername() {
        return readername;
    }

    public void setReadername(String readername) {
        this.readername = readername;
    }

    public String getReadertype() {
        return readertype;
    }

    public void setReadertype(String readertype) {
        this.readertype = readertype;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getMax_num() {
        return max_num;
    }

    public void setMax_num(int max_num) {
        this.max_num = max_num;
    }

    public int getDays_num() {
        return days_num;
    }

    public void setDays_num(int days_num) {
        this.days_num = days_num;
    }

    @Override
    public String toString() {
        return "Reader{" +
                "id=" + id +
                ", readername='" + readername + '\'' +
                ", readertype='" + readertype + '\'' +
                ", sex='" + sex + '\'' +
                ", max_num=" + max_num +
                ", days_num=" + days_num +
                '}';
    }
}
